Ext.define('SMS.controller.Main',{ 
    extend: 'Ext.app.Controller', 
    requires:['SMS.view.Login'], 
    onLaunch : function(){ 
        var win; 
        if(!win){ 
            win = Ext.create('SMS.view.Login').show(); 
        } 
    } 
});
